package com.doubi.constants;


public class SystemConstants {
    /**
     * 默认缓存名称
     */
    public static final String DEFAULT_CACHE_NAME = "RuanYunFramework";
    /**
     * 管理员oid
     */
    public static final String ADMIN_OID = "00000000000000000000000000000000";
    public static final String ADMIN_PASSWORD = "caed8e6c33962abfbde06e9ee91ee78c";
    /**
     * 降序
     */
    public static final String ORDER_DESC="DESC";
    /**
     * 升序
     */
    public static final String ORDER_ASC="ASC";

    /**
     * 默认密码
     */
    public static final String DEFAULT_PASS_WORD = "123456";

    /**
     * 默认编码
     */
    public static final String UTF8 = "UTF-8";

    /**
     * 每日可允许登陆密码次数
     */
    public static final int LOGIN_FAIL_COUNT = 5;

    /**
     * 用户的session key值
     */
    public static final String SESSION_KEY_USERINFO = "systemUser";

    /**
     * 左边菜单url sessionKEY
     */
    public static final String SEESION_KEY_LEFTURLS = "leftUrls";
    /**
     * 验证码 sessionKEY
     */
    public static final String SEESION_VERIFICATION_CODE = "verificationCode";

    /** 在线用户数量 */
    public static final String ALLUSER_NUMBER = DEFAULT_CACHE_NAME + ":ALLUSER_NUMBER";
    /** shiro cache */
    public static final String REDIS_SHIRO_CACHE = DEFAULT_CACHE_NAME + ":SHIRO-CACHE:";
    /** shiro session */
    public static final String REDIS_SHIRO_SESSION = DEFAULT_CACHE_NAME + ":SHIRO-SESSION:";

    /** 删除状态 **/
    public static class DELETE_STATUS {
        /** 未删除 **/
        public static final Integer STATUS_1 = 1;
        /** 已删除 **/
        public static final Integer STATUS_0 = 0;
    }
    public static class YESORNO {

        public static final String YES = "Y";

        public static final String NO = "N";
    }

    public static class STATUS {
        /** 启用 **/
        public static final Integer STATUS_1 = 1;
        /** 禁用 **/
        public static final Integer STATUS_0 = 0;
    }

    /** 短信验证码类型 */
    public static class MsgChkType {
        /** 注册 */
        public static final String REGISTER = DEFAULT_CACHE_NAME + ":REGISTER:";
        /** 登录 */
        public static final String LOGIN = DEFAULT_CACHE_NAME + ":LOGIN:";
        /** 修改密码验证码 */
        public static final String CHGPWD = DEFAULT_CACHE_NAME + ":CHGPWD:";
        /** 身份验证验证码 */
        public static final String VLDID = DEFAULT_CACHE_NAME + ":VLDID:";
        /** 信息变更验证码 */
        public static final String CHGINFO = DEFAULT_CACHE_NAME + ":CHGINFO:";
        /** 活动确认验证码 */
        public static final String AVTCMF = DEFAULT_CACHE_NAME + ":AVTCMF:";
    }

    public static class Times {
        /**一秒 */
        public static final long SECOND = 1000;
        /**一分钟 */
        public static final long MINUTE = SECOND * 60;
        /**一小时 */
        public static final long HOUR = MINUTE * 60;
        /**一天 */
        public static final long DAY = HOUR * 24;
        /**一周 */
        public static final long WEEK = DAY * 7;
        /**一年 */
        public static final long YEAR = DAY * 365;
    }

    /**
     * 用户类型
     */
    public static class UserType{
        public static String ADMIN = "admin";//管理员
        public static String USER = "user";//普通
        public static String HOTEL = "hotel";//酒店
        public static String SERVICE = "service";//服务者
    }

    /**
     * 服务类型
     */
    public static class ServiceUser{
        public static int HOTEL = 1;//酒店
        public static int PHOTOGRAPH = 2;//摄影
        public static int VIDEO = 3;//摄像
        public static int MAKEUP = 4;//化妆
        public static int PRESIDE = 5;//主持
    }

    public static class HelpCenter {
        /** 帮助中心 **/
        public static final int TYPE_1 = 1;
        /** 关于我们 **/
        public static final int TYPE_2 = 2;
    }
    /**
     * 订单typeOne
     */
    public static class OrderTypeOne{
        public static int PENDING = 1;//待处理
        public static int PROCESSING = 2;//进行中
        public static int COMMENT = 3;//待评价
        public static int AFTERSALE = 4;//售后
    }
    /**
     * 订单typeTwo
     */
    public static class OrderTypeTwo{
        public static int PENDING = 1;//待处理
        public static int PROCESSING = 2;//进行中
        public static int COMPLETE = 3;//已经完成
        public static int REFUNDED = 4;//已退款
    }
    /**
     * 订单状态
     * 状态1.未支付 2.已支付 3.待评价 4.已完成
     */
    public static class OrderStatus{
        public static int CANCELLED = 0;//已经取消
        public static int UNPAID = 1;//未支付
        public static int PAID = 2;//已支付
        public static int DETERMINE = 3;//已确定
        public static int COMMENT = 4;//待评价
        public static int COMPLETED = 5;//已完成
    }
    /**
     * 订单状态
     * 状态1.发起 2.同意 3.撤销
     */
    public static class RefundStatus{
        public static int INITIATE = 1;//发起
        public static int AGREE = 2;//同意
        public static int REVOKE = 3;//撤销
        public static int REJECT = 4;//驳回
    }
}
